package com.smz.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smz.entity.TLogistics;
import com.smz.entity.TVehicleCar;
import com.smz.entity.TVehicleDriver;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface TVehicleCarDAO extends BaseMapper<TVehicleCar> {

    /**
     * ggy
     * 查询所有车辆
     */
    List<TVehicleCar> selectTVehicleCarAllGgy();

    IPage<TVehicleCar> findTVehicleCarPage(Page<TVehicleCar> tVehicleCarPage);

    IPage<TVehicleCar> findTVehicleCarPageId(Page<TVehicleCar> tVehicleCarPage, @Param("vehicleId") int vehicleId);

    IPage<TVehicleCar> findTVehicleCarPageNameNumber(Page<TVehicleCar> tVehicleCarPage,
                                                     @Param("vehicleName") String vehicleName,
                                                     @Param("numberPlate") String numberPlate);

    List<TVehicleDriver> findCarDriverName();

    List<TLogistics> findCarLogisticsName();
}
